﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.Entities.BPM_Business.CommonReportConfigs
{
    /// <summary>
    /// CommonConfigsModuleConfig 弹出框配置表
    /// </summary>
    public class CommonReportModule : CommonReportBase
    {
        /// <summary>
        /// 模块名称
        /// </summary>
        public string ModuleName { get; set; }

        /// <summary>
        /// 模块宽度
        /// </summary>
        public decimal? ModuleWidth { get; set; }

        /// <summary>
        /// 模块高度
        /// </summary> 
        public decimal? ModuleHeight { get; set; }

        /// <summary>
        /// 模块类型：1.列表查询 2.新增 3.修改 4.删除 5.只读详情 6.导出 7.导入
        /// </summary>
        public string ModuleType { get; set; }

        /// <summary>
        /// 展示方式：1.弹出框 2.页面上直接显示 
        /// </summary>
        public int ShowType { get; set; } = 1;

        /// <summary>
        /// 是否有效
        /// </summary>
        public bool IsEnabled { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<CommonReportFieldConfig> ConfigFields { get; set; }

        /// <summary>
        /// 1 自动生成SQL 2 配置SQL
        /// </summary>
        public int ReportType { get; set; }

        /// <summary>
        /// 授权代码
        /// </summary>
        public string AuthCode { get; set; }
    }
}
